package com.chinairi.mall.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinairi.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单表,由于order是MYSQL的关键字，所以换名
 * </p>
 *
 * @author gsl
 * @since 2020-10-29
 */
@TableName("ORDER_INFO")
public class OrderInfo extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId("ORDER_ID")
    private String orderId;

    /**
     * 订单名称
     */
    @TableField("ORDER_NAME")
    private String orderName;

    /**
     * 领料单主键
     */
    @TableField("GM_ID")
    private String gmId;

    /**
     * 采购计划ID
     */
    @TableField("PLAN_PURCHASE_ID")
    private String planPurchaseId;

    /**
     * 下单时间
     */
    @TableField("ORDER_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderTime;

    /**
     * 订单状态
     */
    @TableField("ORDER_STATE")
    private String orderState;

    /**
     * 状态编码值
     */
    @TableField(exist = false)
    private String orderStateLabel;

    /**
     * 合同编号
     */
    @TableField("ORDER_CONTRACT_ID")
    private String orderContractId;

    /**
     * 采购部门
     */
    @TableField("ORDER_PURCHASE_DEPARTMENT")
    private String orderPurchaseDepartment;

    /**
     * 供应商ID
     */
    @TableField("ORDER_SUPPLIER_ID")
    private String orderSupplierId;

    /**
     * 供应商名称
     */
    @TableField("ORDER_SUPPLIER_NAME")
    private String orderSupplierName;

    /**
     * 店铺编号
     */
    @TableField("ORDER_SHOP_ID")
    private String orderShopId;

    /**
     * 店铺名称
     */
    @TableField("ORDER_SHOP_NAME")
    private String orderShopName;

    /**
     * 供应商联系人
     */
    @TableField("ORDER_SUPPLIER_MAN")
    private String orderSupplierMan;

    /**
     * 供应商联系方式
     */
    @TableField("ORDER_SUPPLIER_PHONE")
    private String orderSupplierPhone;

    /**
     * 采购商编号
     */
    @TableField("ORDER_USER_CODE")
    private String orderUserCode;

    /**
     * 采购商名称
     */
    @TableField("ORDER_PURCHASE_COM_NAME")
    private String orderPurchaseComName;

    /**
     * 项目编号（ID）
     */
    @TableField("ORDER_PROJECT_ID")
    private String orderProjectId;

    /**
     * 项目名称
     */
    @TableField("ORDER_PROJECT_NAME")
    private String orderProjectName;

    /**
     * 采购方联系人
     */
    @TableField("ORDER_PURCHASE_MAN")
    private String orderPurchaseMan;

    /**
     * 采购方联系方式
     */
    @TableField("ORDER_PURCHASE_PHONE")
    private String orderPurchasePhone;

    /**
     * 发货地址
     */
    @TableField("ORDER_SEND_ADDRESS")
    private String orderSendAddress;

    /**
     * 收货地址
     */
    @TableField("ORDER_RECEIVE_ADDRESS")
    private String orderReceiveAddress;

    /**
     * 商品总金额
     */
    @TableField("ORDER_GOODS_MONEY")
    private BigDecimal orderGoodsMoney;

    /**
     * 服务总金额
     */
    @TableField("ORDER_SERVICE_MONEY")
    private BigDecimal orderServiceMoney;

    /**
     * 订单总金额
     */
    @TableField("ORDER_TOTAL_MONEY")
    private BigDecimal orderTotalMoney;

    /**
     * 生产控制（时效、质量、过程视频）
     */
    @TableField("ORDER_PRODUCTION_CONTROL")
    private String orderProductionControl;

    /**
     * 入库数
     */
    @TableField("ORDER_STORAGE_NUMBER")
    private Float orderStorageNumber;

    /**
     * 出库数
     */
    @TableField("ORDER_DELIVERY_NUMBER")
    private Float orderDeliveryNumber;

    /**
     * 入库金额
     */
    @TableField("ORDER_STORAGE_MONEY")
    private BigDecimal orderStorageMoney;

    /**
     * 应收商品金额
     */
    @TableField("ORDER_COLLECT_GOODS_MONEY")
    private BigDecimal orderCollectGoodsMoney;

    /**
     * 应付商品金额
     */
    @TableField("ORDER_PAY_GOODS_MONEY")
    private BigDecimal orderPayGoodsMoney;

    /**
     * 实收商品金额
     */
    @TableField("ORDER_COLLECT_GOODS_MONEY_REAL")
    private BigDecimal orderCollectGoodsMoneyReal;

    /**
     * 实付商品金额
     */
    @TableField("ORDER_PAY_GOODS_MONEY_REAL")
    private BigDecimal orderPayGoodsMoneyReal;

    /**
     * 出库金额
     */
    @TableField("ORDER_DELIVERY_MONEY")
    private BigDecimal orderDeliveryMoney;

    /**
     * 应收服务金额
     */
    @TableField("ORDER_COLLECT_SERVICE_MONEY")
    private BigDecimal orderCollectServiceMoney;

    /**
     * 应付服务金额
     */
    @TableField("ORDER_PAY_SERVICE_MONEY")
    private BigDecimal orderPayServiceMoney;

    /**
     * 实收服务金额
     */
    @TableField("ORDER_COLLECT_SERVICE_MONEY_REAL")
    private BigDecimal orderCollectServiceMoneyReal;

    /**
     * 实付服务金额
     */
    @TableField("ORDER_PAY_SERVICE_MONEY_REAL")
    private BigDecimal orderPayServiceMoneyReal;

    /**
     * 下单用户ID
     */
    @TableField("CREATE_USER_ID")
    private String createUserId;

    /**
     * 创建人
     */
    @TableField("CREATE_USER")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField("UPDATE_USER")
    private String updateUser;

    /**
     * 修改时间
     */
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 机构代码
     */
    @TableField("ORG_CODE")
    private String orgCode;

    /**
     * 需求计划id
     */
    @TableField(exist = false)
    private String projectPlanReqId;

    /**
     * 时效正常数量
     */
    @TableField(exist = false)
    private Integer timeNormalNum;

    /**
     * 时效异常数量
     */
    @TableField(exist = false)
    private Integer timeAbnormalNum;
    /**
     * 物料总数
     */
    @TableField(exist = false)
    private Integer totalMaterialNum;
    /**
     * 物料合格数量
     */
    @TableField(exist = false)
    private Integer qualifiedMaterialNum;
    /**
     * 物料不合格数量
     */
    @TableField(exist = false)
    private Integer unQuaMaterialNum;

    /**
     * 库存金额
     */
    @TableField(exist = false)
    private BigDecimal InventoryAmount;

    public BigDecimal getInventoryAmount() {
        return InventoryAmount;
    }

    public void setInventoryAmount(BigDecimal inventoryAmount) {
        InventoryAmount = inventoryAmount;
    }

    public Integer getTimeNormalNum() {
        return timeNormalNum;
    }

    public void setTimeNormalNum(Integer timeNormalNum) {
        this.timeNormalNum = timeNormalNum;
    }

    public Integer getTimeAbnormalNum() {
        return timeAbnormalNum;
    }

    public void setTimeAbnormalNum(Integer timeAbnormalNum) {
        this.timeAbnormalNum = timeAbnormalNum;
    }

    public Integer getTotalMaterialNum() {
        return totalMaterialNum;
    }

    public void setTotalMaterialNum(Integer totalMaterialNum) {
        this.totalMaterialNum = totalMaterialNum;
    }

    public Integer getQualifiedMaterialNum() {
        return qualifiedMaterialNum;
    }

    public void setQualifiedMaterialNum(Integer qualifiedMaterialNum) {
        this.qualifiedMaterialNum = qualifiedMaterialNum;
    }

    public Integer getUnQuaMaterialNum() {
        return unQuaMaterialNum;
    }

    public void setUnQuaMaterialNum(Integer unQuaMaterialNum) {
        this.unQuaMaterialNum = unQuaMaterialNum;
    }

    public String getProjectPlanReqId() {
        return projectPlanReqId;
    }

    public void setProjectPlanReqId(String projectPlanReqId) {
        this.projectPlanReqId = projectPlanReqId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }
    public String getGmId() {
        return gmId;
    }

    public void setGmId(String gmId) {
        this.gmId = gmId;
    }
    public String getPlanPurchaseId() {
        return planPurchaseId;
    }

    public void setPlanPurchaseId(String planPurchaseId) {
        this.planPurchaseId = planPurchaseId;
    }
    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }
    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }
    public String getOrderContractId() {
        return orderContractId;
    }

    public String getOrderStateLabel() {
        return orderStateLabel;
    }


    public void setOrderStateLabel(String orderStateLabel) {
        this.orderStateLabel = orderStateLabel;
    }

    public void setOrderContractId(String orderContractId) {
        this.orderContractId = orderContractId;
    }
    public String getOrderPurchaseDepartment() {
        return orderPurchaseDepartment;
    }

    public void setOrderPurchaseDepartment(String orderPurchaseDepartment) {
        this.orderPurchaseDepartment = orderPurchaseDepartment;
    }
    public String getOrderSupplierId() {
        return orderSupplierId;
    }

    public void setOrderSupplierId(String orderSupplierId) {
        this.orderSupplierId = orderSupplierId;
    }
    public String getOrderSupplierName() {
        return orderSupplierName;
    }

    public void setOrderSupplierName(String orderSupplierName) {
        this.orderSupplierName = orderSupplierName;
    }
    public String getOrderShopId() {
        return orderShopId;
    }

    public void setOrderShopId(String orderShopId) {
        this.orderShopId = orderShopId;
    }
    public String getOrderShopName() {
        return orderShopName;
    }

    public void setOrderShopName(String orderShopName) {
        this.orderShopName = orderShopName;
    }
    public String getOrderSupplierMan() {
        return orderSupplierMan;
    }

    public void setOrderSupplierMan(String orderSupplierMan) {
        this.orderSupplierMan = orderSupplierMan;
    }
    public String getOrderSupplierPhone() {
        return orderSupplierPhone;
    }

    public void setOrderSupplierPhone(String orderSupplierPhone) {
        this.orderSupplierPhone = orderSupplierPhone;
    }
    public String getOrderUserCode() {
        return orderUserCode;
    }

    public void setOrderUserCode(String orderUserCode) {
        this.orderUserCode = orderUserCode;
    }
    public String getOrderPurchaseComName() {
        return orderPurchaseComName;
    }

    public void setOrderPurchaseComName(String orderPurchaseComName) {
        this.orderPurchaseComName = orderPurchaseComName;
    }
    public String getOrderProjectId() {
        return orderProjectId;
    }

    public void setOrderProjectId(String orderProjectId) {
        this.orderProjectId = orderProjectId;
    }
    public String getOrderProjectName() {
        return orderProjectName;
    }

    public void setOrderProjectName(String orderProjectName) {
        this.orderProjectName = orderProjectName;
    }
    public String getOrderPurchaseMan() {
        return orderPurchaseMan;
    }

    public void setOrderPurchaseMan(String orderPurchaseMan) {
        this.orderPurchaseMan = orderPurchaseMan;
    }
    public String getOrderPurchasePhone() {
        return orderPurchasePhone;
    }

    public void setOrderPurchasePhone(String orderPurchasePhone) {
        this.orderPurchasePhone = orderPurchasePhone;
    }
    public String getOrderSendAddress() {
        return orderSendAddress;
    }

    public void setOrderSendAddress(String orderSendAddress) {
        this.orderSendAddress = orderSendAddress;
    }
    public String getOrderReceiveAddress() {
        return orderReceiveAddress;
    }

    public void setOrderReceiveAddress(String orderReceiveAddress) {
        this.orderReceiveAddress = orderReceiveAddress;
    }
    public BigDecimal getOrderGoodsMoney() {
        return orderGoodsMoney;
    }

    public void setOrderGoodsMoney(BigDecimal orderGoodsMoney) {
        this.orderGoodsMoney = orderGoodsMoney;
    }
    public BigDecimal getOrderServiceMoney() {
        return orderServiceMoney;
    }

    public void setOrderServiceMoney(BigDecimal orderServiceMoney) {
        this.orderServiceMoney = orderServiceMoney;
    }
    public BigDecimal getOrderTotalMoney() {
        return orderTotalMoney;
    }

    public void setOrderTotalMoney(BigDecimal orderTotalMoney) {
        this.orderTotalMoney = orderTotalMoney;
    }
    public String getOrderProductionControl() {
        return orderProductionControl;
    }

    public void setOrderProductionControl(String orderProductionControl) {
        this.orderProductionControl = orderProductionControl;
    }
    public Float getOrderStorageNumber() {
        return orderStorageNumber;
    }

    public void setOrderStorageNumber(Float orderStorageNumber) {
        this.orderStorageNumber = orderStorageNumber;
    }
    public Float getOrderDeliveryNumber() {
        return orderDeliveryNumber;
    }

    public void setOrderDeliveryNumber(Float orderDeliveryNumber) {
        this.orderDeliveryNumber = orderDeliveryNumber;
    }
    public BigDecimal getOrderStorageMoney() {
        return orderStorageMoney;
    }

    public void setOrderStorageMoney(BigDecimal orderStorageMoney) {
        this.orderStorageMoney = orderStorageMoney;
    }
    public BigDecimal getOrderCollectGoodsMoney() {
        return orderCollectGoodsMoney;
    }

    public void setOrderCollectGoodsMoney(BigDecimal orderCollectGoodsMoney) {
        this.orderCollectGoodsMoney = orderCollectGoodsMoney;
    }
    public BigDecimal getOrderPayGoodsMoney() {
        return orderPayGoodsMoney;
    }

    public void setOrderPayGoodsMoney(BigDecimal orderPayGoodsMoney) {
        this.orderPayGoodsMoney = orderPayGoodsMoney;
    }
    public BigDecimal getOrderCollectGoodsMoneyReal() {
        return orderCollectGoodsMoneyReal;
    }

    public void setOrderCollectGoodsMoneyReal(BigDecimal orderCollectGoodsMoneyReal) {
        this.orderCollectGoodsMoneyReal = orderCollectGoodsMoneyReal;
    }
    public BigDecimal getOrderPayGoodsMoneyReal() {
        return orderPayGoodsMoneyReal;
    }

    public void setOrderPayGoodsMoneyReal(BigDecimal orderPayGoodsMoneyReal) {
        this.orderPayGoodsMoneyReal = orderPayGoodsMoneyReal;
    }
    public BigDecimal getOrderDeliveryMoney() {
        return orderDeliveryMoney;
    }

    public void setOrderDeliveryMoney(BigDecimal orderDeliveryMoney) {
        this.orderDeliveryMoney = orderDeliveryMoney;
    }
    public BigDecimal getOrderCollectServiceMoney() {
        return orderCollectServiceMoney;
    }

    public void setOrderCollectServiceMoney(BigDecimal orderCollectServiceMoney) {
        this.orderCollectServiceMoney = orderCollectServiceMoney;
    }
    public BigDecimal getOrderPayServiceMoney() {
        return orderPayServiceMoney;
    }

    public void setOrderPayServiceMoney(BigDecimal orderPayServiceMoney) {
        this.orderPayServiceMoney = orderPayServiceMoney;
    }
    public BigDecimal getOrderCollectServiceMoneyReal() {
        return orderCollectServiceMoneyReal;
    }

    public void setOrderCollectServiceMoneyReal(BigDecimal orderCollectServiceMoneyReal) {
        this.orderCollectServiceMoneyReal = orderCollectServiceMoneyReal;
    }
    public BigDecimal getOrderPayServiceMoneyReal() {
        return orderPayServiceMoneyReal;
    }

    public void setOrderPayServiceMoneyReal(BigDecimal orderPayServiceMoneyReal) {
        this.orderPayServiceMoneyReal = orderPayServiceMoneyReal;
    }
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "orderId='" + orderId + '\'' +
                ", orderName='" + orderName + '\'' +
                ", gmId='" + gmId + '\'' +
                ", planPurchaseId='" + planPurchaseId + '\'' +
                ", orderTime=" + orderTime +
                ", orderState='" + orderState + '\'' +
                ", orderStateLabel='" + orderStateLabel + '\'' +
                ", orderContractId='" + orderContractId + '\'' +
                ", orderPurchaseDepartment='" + orderPurchaseDepartment + '\'' +
                ", orderSupplierId='" + orderSupplierId + '\'' +
                ", orderSupplierName='" + orderSupplierName + '\'' +
                ", orderShopId='" + orderShopId + '\'' +
                ", orderShopName='" + orderShopName + '\'' +
                ", orderSupplierMan='" + orderSupplierMan + '\'' +
                ", orderSupplierPhone='" + orderSupplierPhone + '\'' +
                ", orderUserCode='" + orderUserCode + '\'' +
                ", orderPurchaseComName='" + orderPurchaseComName + '\'' +
                ", orderProjectId='" + orderProjectId + '\'' +
                ", orderProjectName='" + orderProjectName + '\'' +
                ", orderPurchaseMan='" + orderPurchaseMan + '\'' +
                ", orderPurchasePhone='" + orderPurchasePhone + '\'' +
                ", orderSendAddress='" + orderSendAddress + '\'' +
                ", orderReceiveAddress='" + orderReceiveAddress + '\'' +
                ", orderGoodsMoney=" + orderGoodsMoney +
                ", orderServiceMoney=" + orderServiceMoney +
                ", orderTotalMoney=" + orderTotalMoney +
                ", orderProductionControl='" + orderProductionControl + '\'' +
                ", orderStorageNumber=" + orderStorageNumber +
                ", orderDeliveryNumber=" + orderDeliveryNumber +
                ", orderStorageMoney=" + orderStorageMoney +
                ", orderCollectGoodsMoney=" + orderCollectGoodsMoney +
                ", orderPayGoodsMoney=" + orderPayGoodsMoney +
                ", orderCollectGoodsMoneyReal=" + orderCollectGoodsMoneyReal +
                ", orderPayGoodsMoneyReal=" + orderPayGoodsMoneyReal +
                ", orderDeliveryMoney=" + orderDeliveryMoney +
                ", orderCollectServiceMoney=" + orderCollectServiceMoney +
                ", orderPayServiceMoney=" + orderPayServiceMoney +
                ", orderCollectServiceMoneyReal=" + orderCollectServiceMoneyReal +
                ", orderPayServiceMoneyReal=" + orderPayServiceMoneyReal +
                ", createUserId='" + createUserId + '\'' +
                ", createUser='" + createUser + '\'' +
                ", createTime=" + createTime +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime=" + updateTime +
                ", orgCode='" + orgCode + '\'' +
                ", projectPlanReqId='" + projectPlanReqId + '\'' +
                ", timeNormalNum=" + timeNormalNum +
                ", timeAbnormalNum=" + timeAbnormalNum +
                ", totalMaterialNum=" + totalMaterialNum +
                ", qualifiedMaterialNum=" + qualifiedMaterialNum +
                ", unQuaMaterialNum=" + unQuaMaterialNum +
                ", InventoryAmount=" + InventoryAmount +
                '}';
    }
}
